<label name="lblLength" caption="Length" hint="Choose the length of the horizontal line." width="45" height="13" top="8" left="8"/>
<label name="lblSize" caption="Height" hint="Choose how high you want the horizontal line." width="51" height="13" top="56" left="8"/>
<spinedit name="speWidth" taborder="0" hint="Choose the length of the horizontal line." maxvalue="10000" minvalue="1" value="100" width="65" height="20" top="24" left="8"/>
<spinedit name="speSize" taborder="2" hint="Choose how high you want the horizontal line." maxvalue="0" minvalue="0" width="65" height="20" top="72" left="8"/>
<checkbox name="cbShadow" caption="3D shadow" taborder="3" hint="Choose whether you want 3D shadow on your horizontal line or not." checked="1" width="80" height="17" top="106" left="8"/>
<checkbox name="cbLengthInPercent" caption="%" taborder="1" hint="Should the length be in pixels or percentages?" checked="1" width="80" height="17" top="26" left="80"/>
<radiobutton name="rbAlignLeft" caption="Align left" taborder="4" hint="Choose how your horizontal line should be placed." checked="0" width="90" height="17" top="10" left="168"/>
<radiobutton name="rbAlignCenter" caption="Align center" taborder="5" hint="Choose how your horizontal line should be placed." checked="1" width="90" height="17" top="26" left="168"/>
<radiobutton name="rbAlignRight" caption="Align right" taborder="6" hint="Choose how your horizontal line should be placed." checked="0" width="90" height="17" top="44" left="168"/>
</panel>
</controls>
<dialogevents>
<event type="onclose" resulttype="ok">
StartCode := '<hr';
If (speWidth.Value <> 100) OR (cbLengthInPercent.Checked = false) then